package Manager;

import Entity.Account;
import java.util.ArrayList;

/**
 *
 * @author CONG
 */
public class CustomerDurationsManager  {
    private ArrayList<Account> listAcc;

    public CustomerDurationsManager() {
        listAcc=new ArrayList<Account>();
    }
    public void addAcc(Account acc){
         listAcc.clear();
        listAcc.add(acc);
    }
    public int getSize(){
       return listAcc.size();
    }
    public Account getAcc(int index){
        return listAcc.get(index);
    }
    public void removeAcc(int index){
        listAcc.remove(index);
    }
}
